<?php
return array(
	'modules' => array(
		'title' => 'Modules',
		'descr' => '',
		'type' => 'select',
		'bypost' => false,
		'load' => '',
		'save' => '',
		'options' => array(
			'exclude' => 0,
			'callback' => 'GetModules',
		),
	),
);
//RK
function GetModules($a) {
	$R = Eleanor::$Db->Query('
	SELECT `id`, `title_l`, `active`, `sections`, `path`
	FROM `'. P .'modules`
	ORDER BY `id`
	');
	$sel = '';
	while ($b = $R->fetch_assoc()) {
		$sel .= Eleanor::Option(Eleanor::FilterLangValues(unserialize($b['title_l'])), $b['id'], in_array($b['id'], $a['value']), array('style' => $b['active'] == 0 ? 'color:gray;' : ''), 2);
	}
	return $sel;
}

function LoadModule($a)
{

}

//RK END